#import "tvSeriesManager.h"
#import "Constants.h"

@implementation tvSeriesManager

- (NSDictionary *)resultNumber:(int)number {

    NSMutableDictionary *returnData = [NSMutableDictionary dictionaryWithCapacity:20];
    
    DLog(@"--- TV serie details ---");
    
    // Get the movie
    NSDictionary  *serie = nil; /*= [xmlDoc rootElement] */;
    NSArray *values;
    NSString *value;
    
    // Get the Original Title -----
    value = [serie objectForKey:@"originalTitle"];
    if (value) {
        DLog(@"OriginalTitle : %@",value);
        [returnData setObject:value forKey:MKKeyDVDOriginalTitle];
    } else {
        DLog(@"OriginalTitle : not found");
    }
    
    // Get the Title -----
    value = [serie objectForKey:@"title"];
    if (value) {
        DLog(@"Title : %@",value);
        [returnData setObject:value forKey:MKKeyEntryTitle];
    } else {
        DLog(@"Title : not found");
    }
    
    return returnData;
}

@end
